<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">
        待办事项
    </h1>
</div>
<div class="wrapper-md">
    <div class="panel panel-default">
        <div class="panel-heading font-bold">
            待办事项基本信息
        </div>
        <div class="panel-body">
            <div class="wrapper-md ng-scope">
                
                <div class="row" novalidate>                  
                <!--表结构 -->
                <div class="col-md-12">
                    <div class="panel panel-default">
                            <ul id="myTab" class="nav nav-tabs">
                            <li class="active">
                                    <a href="#home" data-toggle="tab">
                                        待办事项
                                    </a>
                            </li>
                                <li >
                                    <a href="#home2" data-toggle="tab">
                                        已办事项
                                    </a>
                            </li>

                            </ul>
                            <div id="myTabContent" class="tab-content">
                                
                                <div class="tab-pane fade in active" id="home">
                                       <div class="pull-left col-sm-12" style="background-color: #ffffff ;margin: 0px 15px;margin-top: 10px">
                                                <div class=" pull-left" style="text-align:left;margin-top: 14px;  width: 25%">
                                                   风险点名称：
                                                    <input type="text" ng-model="reuipmentbl1.name">
                                                </div>
                                    
                                                <div class=" pull-left" style="text-align:left;margin-top: 14px;  width: 225px">
                                                    责任人：
                                                    <select ng-model="reuipmentbl1.r_name" ng-options="color.id as color.name for color in reuipmentbl.r_names" style="width: 100px;height: 26px"></select>
                                                    <!--<input type="text" ng-model="reuipmentbl.r_name">-->
                                                </div>           
                                                <div style="margin-top: 10px;margin-right: 30px;padding-right:150px;">
                                                    <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="search1()">搜索</button>
                                                </div>
                                    </div>

                                        <div class="panel-body">
                                                <table class="table table-striped table-bordered ng-isolate-scope dataTable no-footer"
                                                    style="display: table; width: 100%;table-layout:fixed;">
                                                    <thead>
                                                    <tr>
                                                        <th style="width: 4%;text-align:center;vertical-align:middle;padding:3px;">序号</th>
                                                        <th style="width: 12%;text-align:center;vertical-align:middle;padding:3px;">待办事项名称</th>
                                                        <th style="width: 10%;text-align:center;vertical-align:middle;padding:3px;">风险点名称</th>
                                                        <th style="width: 12%;text-align:center;vertical-align:middle;padding:3px;">上次维护时间</th>
                                                        <th style="width: 12%;text-align:center;vertical-align:middle;padding:3px;">下次提醒时间</th>
                                                        <th style="width: 12%;text-align:center;vertical-align:middle;padding:3px;">最晚维护日期</th>
                                                        <th style="width: 7%;text-align:center;vertical-align:middle;padding:3px;">责任人</th>
                                                        <th style="width: 10%;text-align:center;vertical-align:middle;padding:3px;">手机号</th>
                                                        <!--<th style="width: 10%;text-align:center;vertical-align:middle;">提报单位</th>-->
                                                        <th style="width: 8%;text-align:center;vertical-align:middle;padding:3px;">提报人</th>
                                                        <th style="width: 8%;text-align:center;vertical-align:middle;padding:3px;">提报时间</th>
                                                        <th style="width: 7%;text-align:center;vertical-align:middle;padding:3px;">操作</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody>
                                                    <tr ng-repeat="info in a">
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{$index+1}}</td>
                                                        <td  style="vertical-align:middle; padding:4px"><div class="ellipsis" style="text-align:center;max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.b_name}}">{{info.b_name}}</div><div class="ellipsis" style="text-align:center;max-width:100%;" title="{{info.order_code}}">{{info.order_code}}</div></td>
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.name}}</td>
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.b_last_main}}</td>
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.next_remind}}</td>
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.last_data}}</td>
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.r_name}}</td>
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.r_mobile}}</td>
                                                        <!--<td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.sub_unit}}</td>-->
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.b_submit_person}}</td>
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.b_submit_date}}</td>
                                                        <td  style="text-align:center;vertical-align:middle; ">
                                                            <div class="btn-group" dropdown="">
                                                                <button type="button" class="btn btn-primary btn-xs" dropdown-toggle="" ng-disabled="disabled" aria-haspopup="true" aria-expanded="false" ><!--style="width: 60px"-->
                                                                    操作 <span class="caret"></span>  
                                                                </button>
                                                                <ul class="dropdown-menu" role="menu" >
                                                                    <li>
                                                                        <a ng-click="adetails(info)" >详情</a>
                                                                    </li>
                                                                    <li>
                                                                        <a ng-click="ado(info)" >处理</a>
                                                                    </li>                                   
                                                                </ul>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    </tbody>
                                                </table>
                                        </div>

                                        <div class="text-right" style="background-color: white">
                                            <pagination
                                                total-items="atotalItems"
                                                ng-model="acurrentPage"
                                                ng-change="pageChanged()"
                                                previous-text="上一页"
                                                next-text="下一页"
                                                first-text="首页"
                                                last-text="尾页"
                                                max-size="5"
                                                boundary-links="true"
                                                rotate="false"
                                                items-per-page="itemsPerPage"
                                                class="m-t-none m-b"></pagination>
                                    </div>
                                </div>
                                <div class="tab-pane fade " id="home2">
                                       <div class="pull-left col-sm-12" style="background-color: #ffffff ;margin: 0px 15px;margin-top: 10px">
                                                    <div class=" pull-left" style="text-align:left;margin-top: 14px;  width: 25%">
                                                        风险点名称：
                                                        <input type="text" ng-model="reuipmentbl2.name">
                                                    </div>
                                        
                                                    <div class=" pull-left" style="text-align:left;margin-top: 14px;  width: 225px">
                                                        责任人：
                                                        <select ng-model="reuipmentbl2.r_name" ng-options="color.id as color.name for color in reuipmentbl.r_names" style="width: 100px;height: 26px"></select>
                                                        <!--<input type="text" ng-model="reuipmentbl.r_name">-->
                                                    </div>           
                                                    <div style="margin-top: 10px;margin-right: 30px;padding-right:150px;">
                                                        <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="search2()">搜索</button>
                                                    </div>
                                    </div>         
                                        <div class="panel-body">
                                                  <table class="table table-striped table-bordered ng-isolate-scope dataTable no-footer"
                                                    style="display: table; width: 100%;table-layout:fixed;">
                                                    <thead>
                                                    <tr>
                                                        <th style="width: 6%;text-align:center;vertical-align:middle;padding:3px;">序号</th>
                                                        <th style="width: 12%;text-align:center;vertical-align:middle;padding:3px;">待办事项名称</th>
                                                        <th style="width: 10%;text-align:center;vertical-align:middle;padding:3px;">风险点名称</th>
                                                        <!--<th style="width: 12%;text-align:center;vertical-align:middle;padding:3px;">上次维护时间</th>
                                                        <th style="width: 12%;text-align:center;vertical-align:middle;padding:3px;">下次提醒时间</th>
                                                        <th style="width: 12%;text-align:center;vertical-align:middle;padding:3px;">最晚维护日期</th>-->
                                                        <th style="width: 10%;text-align:center;vertical-align:middle;padding:3px;">责任人</th>
                                                        <th style="width: 10%;text-align:center;vertical-align:middle;padding:3px;">手机号</th>
                                                        <!--<th style="width: 10%;text-align:center;vertical-align:middle;">提报单位</th>-->
                                                        <th style="width: 10%;text-align:center;vertical-align:middle;padding:3px;">提报人</th>
                                                        <th style="width: 10%;text-align:center;vertical-align:middle;padding:3px;">提报时间</th>
                                                        <th style="width: 10%;text-align:center;vertical-align:middle;padding:3px;">操作</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody>
                                                    <tr ng-repeat="info in b">
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{$index+1}}</td>
                                                        <td  style="vertical-align:middle; padding:4px"><div class="ellipsis" style="text-align:center;max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.b_name}}">{{info.b_name}}</div><div class="ellipsis" style="text-align:center;max-width:100%;" title="{{info.order_code}}">{{info.order_code}}</div></td>
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.name}}</td>
                                                        <!--<td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.inspection_data}}</td>
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.next_remind}}</td>
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.last_data}}</td>-->
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.r_name}}</td>
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.r_mobile}}</td>
                                                        <!--<td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.sub_unit}}</td>-->
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.b_submit_person}}</td>
                                                        <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.b_submit_date}}</td>
                                                        <td  style="text-align:center;vertical-align:middle; ">
                                                            <div class="btn-group" dropdown="">
                                                                <button type="button" class="btn btn-primary btn-xs" dropdown-toggle="" ng-disabled="disabled" aria-haspopup="true" aria-expanded="false" style="width: 60px">
                                                                    操作 <span class="caret"></span>  
                                                                </button>
                                                                <ul class="dropdown-menu" role="menu" >
                                                                    <li>
                                                                        <a ng-click="bdetails(info)" >详情</a>
                                                                    </li>                                  
                                                                </ul>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    </tbody>
                                                </table>
                                        </div>
                                        <div class="text-right" style="background-color: white">
                                            <pagination
                                                total-items="btotalItems"
                                                ng-model="bcurrentPage"

                                                ng-change="pageChanged1()"
                                                previous-text="上一页"
                                                next-text="下一页"
                                                first-text="首页"
                                                last-text="尾页"
                                                max-size="5"
                                                boundary-links="true"
                                                rotate="false"
                                                items-per-page="itemsPerPage"
                                                class="m-t-none m-b"></pagination>
                                    </div>
                                </div>
                        </div>
                    </div>
                    </div>
                </div>
                </div>
        </div>
    </div>
</div>



